import request from 'umi-request';

export async function clientRegister(params) {
  return request('/api/miner/add', {
    method: 'POST',
    data: params,
  });
}

export async function clientUpdate(params) {
  return request('/api/miner/update', {
    method: 'POST',
    data: params,
  });
}
